package com.lanou.test.controller;

import com.lanou.test.bean.ResultObject;
import com.lanou.test.bean.User;
import com.lanou.test.service.NewsService;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/news")
public class NewsController {

    @Autowired
    NewsService service;

    @RequestMapping("/getAll.do")
    public ResultObject getNews(){
        User user = service.findUser();
        ResultObject object = new ResultObject();

        service.findUser();
        return  new ResultObject();
    }
}
